#求素数
'''
for i in range(2,201):
    flag = True
    for j in range(2,int(i ** 0.5)+1):
        if i % j == 0:
            flag = False
            break
    if flag:#等价于 if flag == True:
        print(i,'是质数')
  '''

for i in range(2,9001):
    count = 0
    for j in range(2,i):
        if i % j == 0:
            count += 1
    if count == 0:
        print(i,'是一个质数')
    else:
        print(i,'是一个合数，它能被',count,'个数字整除')
       
